package ualrcdg.shared.exceptions;

/**
 * Thrown to indicate that the parsing of a CDG file has failed.
 */
public class CDGParseException extends CDGException
{
	private static final long serialVersionUID = -1755867269615099237L;

	/**
	 * Private nullary constructor
	 */
	private CDGParseException( )
	{
		super( "" );
	}
	
	/**
	 * Parameterized constructor. Creates a new {@link CDGParseException} with no declared causing Throwable
	 * 
	 * @param err the message detailing the cause of the exception
	 */
	public CDGParseException( String err )
	{
		super( err );
	}
	
	/**
	 * Parameterized constructor. Creates a new {@link CDGParseException} with no declared causing Throwable
	 * 
	 * @param err the message detailing the cause of the exception
	 * @param cause the exception that caused this one to be thrown
	 */	public CDGParseException( String err, Throwable cause )
	{
		super( err, cause );
	}
}
